<?php
$sites = Site::get(array('@condition'=>array('status'),'@order'=>'weight, title'))
?>
<div class="b-main-page-navigation">
    <?foreach($sites as $site):?>
    <div class="item" style="background: <?=$site->color?>">
        <!--		-->		<div class="minimized" style="background: <?=$site->color?>">
            <a href="/<?=$site->name?>/">
                <div class="minimized-inner">
                    <img src="<?=$site->logomin?>">
                    <span></span>
                </div>
            </a>
        </div>
        <div class="detailed">
            <div class="background">
                <div class="background-inner">
                    <img src="<?=$site->background?>">
                </div>
            </div>
            <div class="detailed-inner">
                <a href ="/<?=$site->name?>/" class="logo">
                    <img src="<?=$site->logo?>" alt="logo">
                </a>
                <div class="b-left-menu">
                    <ul class="left-menu">
<?if(!empty($site->menus) && $site->menus->count()>0):?>
    <?foreach ($site->menus as $menu):?>
                         <li><a href="<?=$menu->link?>"><?=$menu->title?></a></li>
    <?endforeach;?>
<?endif;?>

                    </ul>
                </div>
                <h1 class="description">
                    <div class="description-inner clearfix">
                        <?=$site->lozung?>
                        <div class="more">
                            <a href="/<?=$site->name?>/">
                                <span><?=X3::translate('Подробнее');?></span>
                                <i></i>
                            </a>
                        </div>
                    </div>
                </h1>
            </div>
        </div>
    </div>
<?endforeach;?>    
    <?/*<div class="item food" style="background: #2ba4d5">
        <!--		-->		<div class="minimized" style="background: #2ba4d5">
            <a href="#">
                <div class="minimized-inner">
                    <img src="/uploads/227474b5be6b0220c082d6d14d7671a6.png">
                    <span></span>
                </div>
            </a>
        </div>
        <div class="detailed">
            <div class="background">
                <div class="background-inner">
                    <img src="/uploads/3e0bec3eef59923e3f636fd63c2e2aa5.jpg">
                </div>
            </div>
            <div class="detailed-inner">
                <a href ="http://prodinvest-food.ru" class="logo">
                    <img src="/uploads/aa22ffd027bee317d89680ae6056c618.png" alt="logo">
                </a>
                <div class="b-left-menu">
                    <ul class="left-menu">


                        <li><a href="/catalog/">Продукты</a></li>


                        <li><a href="/news/">Новости</a></li>


                        <li><a href="/info/">Технологам</a></li>


                        <li><a href="/quality/">Качество</a></li>


                        <li><a href="/partners/">Партнерам</a></li>


                        <li><a href="/contacts/">Контакты</a></li>


                    </ul>
                </div>
                <h1 class="description" title="/uploads/4f2248c83bfedd2c942483fd85d253e1.png">
                    <div class="description-inner clearfix">

                        <p>PRODINVEST FOOD -</p>

                        <p>молочное сырье&nbsp;и ингредиенты</p>

                        <p>для пищевой промышленности.</p>
                        <div class="more" style="background: url('/uploads/4f2248c83bfedd2c942483fd85d253e1.png') repeat left top" >
                            <a href="http://prodinvest-food.ru">
                                <span>Подробнее</span>
                                <i></i>
                            </a>
                        </div>
                    </div>
                </h1>
            </div>
        </div>
    </div>
    <div class="item feed" style="background: #8cc640">
        <!--		-->		<div class="minimized" style="background: #8cc640">
            <a href="#">
                <div class="minimized-inner">
                    <img src="/uploads/477b5a0db483753c5e947d9d0391ce55.png">
                    <span></span>
                </div>
            </a>
        </div>
        <div class="detailed">
            <div class="background">
                <div class="background-inner">
                    <img src="/uploads/316a3dd061701c622ad85574abcc80cd.jpg">
                </div>
            </div>
            <div class="detailed-inner">
                <a href ="http://prodinvest-feed.ru" class="logo">
                    <img src="/uploads/0e95e23d30c7a5e8cb8a06d6a9aa9d20.png" alt="logo">
                </a>
                <div class="b-left-menu">
                    <ul class="left-menu">


                        <li><a href="/catalog/">Продукты</a></li>


                        <li><a href="/news/">Новости</a></li>


                        <li><a href="/info/">Специалистам</a></li>


                        <li><a href="/quality/">Качество</a></li>


                        <li><a href="/partners/">Партнерам</a></li>


                        <li><a href="/contacts/">Контакты</a></li>


                    </ul>
                </div>
                <h1 class="description" title="/uploads/2f1c26f662558fc502a17dad3c6f0890.png">
                    <div class="description-inner clearfix">
                        <p>Направление PRODINVEST FEED</p>

                        <p> специализируется на производстве, импорте</p>

                        <p>и продажах качественных кормов</p>

                        <p>для животноводства</p>

                        <div class="more" style="background: url('/uploads/2f1c26f662558fc502a17dad3c6f0890.png') repeat left top" >
                            <a href="http://prodinvest-feed.ru">
                                <span>Подробнее</span>
                                <i></i>
                            </a>
                        </div>
                    </div>
                </h1>
            </div>
        </div>
    </div>
    <div class="item agro" style="background: #f6d110">
        <!--		-->		<div class="minimized" style="background: #f6d110">
            <a href="#">
                <div class="minimized-inner">
                    <img src="/uploads/17be3c125977eb44ed7ca9f55f57ae7b.png">
                    <span></span>
                </div>
            </a>
        </div>
        <div class="detailed">
            <div class="background">
                <div class="background-inner">
                    <img src="/uploads/c76b93f4bf35843c08dccd2d21ae1b49.jpg">
                </div>
            </div>
            <div class="detailed-inner">
                <a href ="http://prodinvest-agro.ru" class="logo">
                    <img src="/uploads/defd6e51db99a352ad3c225adc2c0821.png" alt="logo">
                </a>
                <div class="b-left-menu">
                    <ul class="left-menu">


                        <li><a href="/catalog/">Продукты</a></li>


                        <li><a href="/news/">Новости</a></li>


                        <li><a href="/info/">Специалистам</a></li>


                        <li><a href="/quality/">Качество</a></li>


                        <li><a href="/partners/">Инвесторам</a></li>


                        <li><a href="/contacts/">Контакты</a></li>


                    </ul>
                </div>
                <h1 class="description" title="/uploads/73875192dbdfe47f36b8fc57446b0ea1.png">
                    <div class="description-inner clearfix">
                        <p>Направление PRODINVEST AGRO </p>

                        <p>объединяет производителей </p>

                        <p>высококачественного молока, </p>

                        <p>мяса и зерновых.  </p>

                        <div class="more" style="background: url('/uploads/73875192dbdfe47f36b8fc57446b0ea1.png') repeat left top" >
                            <a href="http://prodinvest-agro.ru">
                                <span>Подробнее</span>
                                <i></i>
                            </a>
                        </div>
                    </div>
                </h1>
            </div>
        </div>
    </div>
    <div class="item ingredients" style="background: #ac3e81">
        <!--		-->		<div class="minimized" style="background: #ac3e81">
            <a href="#">
                <div class="minimized-inner">
                    <img src="/uploads/2405530f1a16de9697ff075a88060ffe.png">
                    <span></span>
                </div>
            </a>
        </div>
        <div class="detailed">
            <div class="background">
                <div class="background-inner">
                    <img src="/uploads/aebc93b6249c1e4f89a289a7abdeb5bc.jpg">
                </div>
            </div>
            <div class="detailed-inner">
                <a href ="http://prodinvest-ing.ru" class="logo">
                    <img src="/uploads/942cad282268f764c5b64de50c363dae.png" alt="logo">
                </a>
                <div class="b-left-menu">
                    <ul class="left-menu">


                        <li><a href="/catalog/">Продукты</a></li>


                        <li><a href="/contacts/">Контакты</a></li>


                    </ul>
                </div>
                <h1 class="description" title="/uploads/cef5bc95fefd9c9c8d23bc12e83476dd.png">
                    <div class="description-inner clearfix">

                        <p>Высокотехнологичные ингредиенты </p>

                        <p>и решения для пищевой индустрии  </p>
                        <div class="more" style="background: url('/uploads/cef5bc95fefd9c9c8d23bc12e83476dd.png') repeat left top" >
                            <a href="http://prodinvest-ing.ru">
                                <span>Подробнее</span>
                                <i></i>
                            </a>
                        </div>
                    </div>
                </h1>
            </div>
        </div>
    </div>*/?>
</div>